﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="ReporteFormato6.aspx.vb" Inherits="Devida_ReporteFormato6" Theme="Yahoo-Ocean" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />      
     
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
    <asp:Label id="lblTitulo" runat="server" ForeColor="White" Font-Size="Large" Font-Bold="true" Width="600px" >Informe Consolidado de avance de los Programas Presupuestales</asp:Label>
</asp:Content>
 
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<asp:UpdatePanel ID="upPrueba" runat="server" ValidationGroup="miPrueba" UpdateMode="Always">            
<ContentTemplate>
<div style="width:900px; text-align:left;">
    <table style="width: 900px; padding-bottom: 0px; padding-top: 5px;">
        <tr style="width: 900px;">
            <td style="width: 300px">
                <asp:Label ID="lbl1" runat="server" Text="Informe correpondiente al mes de: " Font-Size="12px"></asp:Label>
            </td>
            <td style="text-align: left;">
                <asp:DropDownList ID="ddlPeriodo" runat="server" AutoPostBack="false" CssClass="ddl"></asp:DropDownList>               
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: left;">
                <asp:ImageButton ID="btnGenerar" runat="server" ToolTip="Generar" ImageUrl="~/Imagenes/btnGenerar.png" Style="height: 23px" ValidationGroup="miPrueba" />
            </td>
        </tr>
    </table>
</div>
</ContentTemplate>
</asp:UpdatePanel>

<asp:UpdateProgress ID="UpdateProgress1" runat="Server"> 
    <progresstemplate>       
            <img alt="Cargando" border="0" height="25" src="../Imagenes/ajax-loader.gif" />
            <strong style="height: 15px"> 
            <span style="font-size: 16pt; color: #f611a4; font-family: Verdana">
            Generando reporte... Por favor espere.
            </span>
            </strong>
    </progresstemplate>
</asp:UpdateProgress>

<asp:UpdatePanel ID="upReporte" runat="server">
<ContentTemplate>
<div id="divReporte" runat="server" style="width: 920px; height: 480px; text-align: left; overflow-y: auto; border: 1px solid #234ac7; display:none;">
   <table style="border-collapse: collapse; border-spacing: 0px 0px; padding: 0px 0px 0px 0px; width: 90%;">
            <tr>
                <td>
                    <table style="border: 1px solid #6489a4; text-align:center; background-color: #ebebeb; color: #000000; font-weight: bold; font-size: 24px; border-collapse: collapse; border-spacing: 0px 0px; padding: 0px 0px 0px 0px;">
                        <tr style="font-weight: bold;">
                            <td rowspan="2" style="border-right: 1px solid #6489a4; width: 333px; font-weight: bold;">
                                <asp:Label ID="Label1" runat="server" Text="DETALLE" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td colspan="2" style="border-right: 1px solid #6489a4; border-bottom: 1px solid #6489a4">
                                <asp:Label ID="Label4" runat="server" Text="Monto" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td rowspan="2" style="border-right: 1px solid #6489a4; width: 90px">
                                <asp:Label ID="Label5" runat="server" Text="Monto </br> Transferido" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td colspan="2" style="border-right: 1px solid #6489a4; border-bottom: 1px solid #6489a4;">
                                <asp:Label ID="Label6" runat="server" Text="Ejecución Financiera" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td rowspan="2" style="width: 90px">
                                <asp:Label ID="Label7" runat="server" Text="% Ejecución </br> Física (IAFG)" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                        </tr>
                        <tr style="font-weight: bold;">
                            <td style="border-right: 1px solid #6489a4; width: 90px">
                                <asp:Label ID="Label9" runat="server" Text="Total S/." Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td style="border-right: 1px solid #6489a4; width: 90px">
                                <asp:Label ID="Label10" runat="server" Text="Programado </br> Acumulado  (1)" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td style="border-right: 1px solid #6489a4; width: 90px">
                                <asp:Label ID="Label11" runat="server" Text="Monto S/. (2)" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td style="border-right: 1px solid #6489a4; width: 90px">
                                <asp:Label ID="Label12" runat="server" Text="% </br> (3)=(2)/(1)" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width: 900px; padding: 0px 0px 0px 0px; text-align: left; border-collapse: collapse; border-spacing: 0px 0px">
                        <tr>
                            <td>
                                <asp:GridView ID="gvInforme" runat="server" Width="894px" AutoGenerateColumns="false" ShowHeader="false">
                                    <Columns>
                                        <asp:BoundField DataField="NOM" ItemStyle-HorizontalAlign="Left" ItemStyle-Font-Size="12px"></asp:BoundField>
                                        <asp:BoundField DataField="TOTAL" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>
                                        <asp:BoundField DataField="ACUMULADO" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>
                                        <asp:BoundField DataField="TRANSFERIDO" ItemStyle-Width="89px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>
                                        <asp:BoundField DataField="EJECUTADO" ItemStyle-Width="89px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>
                                        <asp:BoundField DataField="PORC" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:P0}"></asp:BoundField>
                                        <asp:BoundField DataField="IAFG" ItemStyle-Width="89px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:P0}"></asp:BoundField>
                                        <asp:TemplateField Visible="false" ItemStyle-Width="0px">
                                            <ItemTemplate>
                                                <asp:HiddenField ID="hfPPER" runat="server" Value='<%# Eval("PPER")%>' />
                                                <asp:HiddenField ID="hfTipo" runat="server" Value='<%# Eval("TIPO_PROYECTO_ACTIVIDAD")%>' />
                                                <asp:HiddenField ID="hfNom" runat="server" Value='<%# Eval("NOM")%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
</div>
</ContentTemplate>
</asp:UpdatePanel>

</asp:Content>